@keyframes show-box-height {
    0% {
        height: 42px;
    }
    100% {
        height: var(--height);
    }
}
@keyframes hide-box-height {
    0% {
        height: var(--height);
    }
    100% {
        height: 42px;
    }
}

.form-main{
    width: 100%;
    height: 100%;
    .form-drag-box{
        width: 100%;
        height: 100%;
        @include flexLayout(flex,normal,normal);
    }
    .form-main__aside{
        flex: 0 0 auto;
        width: 3rem;
        margin-left: 4px;
        height: 100%;
        border-radius: .08rem;
        box-shadow: 0 2px 4px 1px rgba(40, 120, 255, 0.1), 0 0 6px 1px rgba(0, 0, 0, 0.1);
    }
    .form-main__body{
        flex: 1;
        width: 100%;
        height: 100%;
        overflow: auto;
        overflow-x: hidden;
        position: relative;
        .form-main__body-footer{
            text-align: center;
        }
        .form-set {
            background: #fff;
            padding: 12px 26px 0 10px;
            @include flexLayout(flex,normal,normal);
            flex-wrap: wrap;
            border-bottom: 10px solid #EDEFF2;
            .full-input {
                width: 100%;
                ::v-deep {
                    .el-input__inner, .el-textarea__inner {
                        width: 100%;
                    }
                }
            }
            .el-form {
                @include flexLayout(flex,normal,normal);
            }
            ::v-deep {
                .el-form-item {
                    width: 100%;
                    margin-bottom: 0;
                }
                .cf__group {
                    padding-bottom: 14px;
                }
            }
            .half-width {
                width: 44%;
                margin-right: 2%;
            }
        }
        .custom-control-box {
            height: 100%;
            @include flexLayout(flex,normal,normal);
            &.centerBox {
                @include flexLayout(flex,center,normal);
                .control-canvas-area {
                    border: 0!important;
                    .bottom-content {
                        border: 1px solid #C7CAD3;
                        border-radius: 4px;
                    }
                }
            }
            .control-canvas-area {
                width: calc(100% - 6.51rem);
                height: 100%;
                overflow-y: auto;
                background: #fff;
                .bottom-content {
                    padding: 0 0 20px;
                    height: 100%;
                    .bottom-content-header {
                        height: 56px;
                        margin: 0 20px;
                        @include flexLayout(flex,justify,center);
                        border-bottom: 1px solid #EBEEF5;
                    }
                    & > ::v-deep {
                        .drag-tag-form-box {
                            padding: 0 20px;
                            height: calc(100% - 56px);
                            overflow-y: auto;
                            & > .drag-tag-form__tbody {
                                height: 100%;
                                & > span {
                                    height: 100%;
                                    padding-top: 10px;
                                    display: flex;
                                    justify-content: space-between;
                                    align-content: flex-start;
                                    flex-wrap: wrap;
                                    & > * {
                                        height: auto;
                                    }
                                }
                            }
                        }
                    }
                    &.isSend {
                        border: 0;
                        border-top: 1px solid #EDEFF2;
                        .bottom-content-header {
                            display: none;
                        }
                        .drag-tag-form-box {
                            padding: 0;
                        }
                        ::v-deep {
                            .form-item {
                                padding-left: 0;
                                padding-right: 0;
                            }
                        }
                    }
                }
                ::v-deep {
                    .fill-form-table-item {
                        width: 100%;
                        .date-picker {
                            width: 100%;
                        }
                    }
                }
            }
            .control-right {
                margin-left: 10px;
                width: 3.17rem;
                height: 100%;
                overflow-y: hidden;
                .control-setting-area {
                    background: #fff;
                    height: 100%;
                    overflow-y: auto;
                    &.max {
                        height: calc(100% - 84px - 20px);
                    }
                    //&.showOne {
                    //    height: calc(100% - 330px - 42px - 20px);
                    //}
                    //&.showTwo {
                    //    height: calc(100% - 150px - 42px - 20px);
                    //}
                    ::v-deep {
                        .el-tabs__nav-wrap::after {
                            background: transparent;
                        }
                        .el-form-item__label {
                            font-size: 16px;
                            font-family: "PingFang SC Medium";
                            line-height: 22px;
                            color: #37383a;
                            margin-bottom: 10px;
                            padding: 0;
                        }
                        .el-form-item {
                            margin-bottom: 15px;
                        }
                    }
                }
            }
        }
    }
    .custom-form {
        padding: 0;
        .cf__group {
            padding-bottom: 20px;
            .cf__group-tips {
                line-height: 20px;
                height: 20px;
            }
            ::v-deep {
                .el-input--medium .el-input__inner {
                    width: 100%;
                }
            }
        }
    }
    .other-tag-list {
        width: 3.14rem;
        margin-right: 10px;
        overflow-y: auto;
        height: 100%;
        .creat-node-often {
            --height: 150px;
            background: #fff;
            padding: 18px 0 0;
            min-height: calc(100% - 590px);
            .one {
                padding: 0 18px;
                margin: 0;
                @include flexLayout(flex,justify,center);
                .tips {
                    display: block;
                    margin-bottom: 15px;
                    font-size: 14px;
                    font-family: "PingFang SC Medium";
                    line-height: 22px;
                    color: #2C82C9;
                    cursor: pointer;
                    border-bottom: 1px solid #2C82C9;
                }
                .title {
                    display: block;
                    font-family: "PingFang SC";
                    font-weight: bold;
                    margin-bottom: 21px;
                    font-size: 12px;
                    line-height: 17px;
                    color: #37383a;
                }
                .ghost {
                    opacity: 0.5;
                    background: #c8ebfb;
                }
            }
            ::v-deep {
                .el-collapse-item {
                    margin-top: 10px;
                    & > div:first-child {
                        display: none;
                    }
                }
            }
        }
        .creat-node-type {
            background: #fff;
            padding: 18px 18px 0;
            position: relative;
            --height: 490px;
            min-height: calc(100% - 90px - 160px);
            overflow-y: hidden;
            .title {
                display: block;
                margin-bottom: 10px;
                font-size: 12px;
                line-height: 17px;
                color: #37383a;
                font-family: "PingFang SC";
                font-weight: bold;
            }
            .icon-arrow-title {
                position: absolute;
                right: 26px;
                top: 16px;
                i {
                    font-size: 18px;
                    color: #37383a;
                }
            }
            &.hidden {
                animation: 0.4s hide-box-height forwards;
            }
            &.show {
                animation: 0.4s show-box-height forwards;
            }
            ::v-deep{
                .drag-sub-list-ul{
                    width: 100%;
                    &::after{
                        display: block;
                        content: '';
                        visibility: hidden;
                        clear: both;
                        font-size: 0;
                        line-height: 0;
                    }
                    @include flexLayout(flex,normal,center);
                    flex-wrap: wrap;
                    .drag-sub-list-li{
                        width: 64px;
                        margin-bottom: 15px;
                        margin-right: 28px;
                        &:nth-child(3n) {
                            margin-right: 0;
                        }
                        .tag {
                            cursor: pointer;
                            .img {
                                width: 18px;
                                height: 18px;
                                margin: 0 auto;
                                background-size: 18px 18px;
                                background-repeat: no-repeat;
                                background-position: center;
                                &.input-text {
                                    background-image: url('~@/assets/form-input-text.png');
                                }
                                &.input-textarea {
                                    background-image: url('~@/assets/form-input-textarea.png');
                                }
                                &.input-date {
                                    background-image: url('~@/assets/form-input-date.png');
                                }
                                &.input-datetime {
                                    background-image: url('~@/assets/form-input-date.png');
                                }
                                &.location {
                                    background-image: url('~@/assets/form-location.png');
                                }
                                &.select {
                                    background-image: url('~@/assets/form-select.png');
                                }
                                &.cascader {
                                    background-image: url('~@/assets/form-cascader.png');
                                }
                                &.input-num, &.input-num-decimal {
                                    background-image: url('~@/assets/form-input-num.png');
                                }
                                &.upload-img {
                                    background-image: url('~@/assets/form-upload-img.png');
                                }
                                &.upload-video {
                                    background-image: url('~@/assets/form-upload-video.png');
                                }
                                &.upload-record {
                                    background-image: url('~@/assets/form-upload-record.png');
                                }
                                &.upload-file {
                                    background-image: url('~@/assets/form-upload-file.png');
                                }
                                &.group {
                                    background-image: url('~@/assets/form-group.png');
                                }
                                &.table {
                                    background-image: url('~@/assets/form-table.png');
                                }
                            }
                            p {
                                margin: 4px 0 0 0;
                                font-size: 14px;
                                font-family: "PingFang SC Medium";
                                line-height: 20px;
                                color: #37383a;
                                text-align: center;
                            }
                            &:hover {
                                .img {
                                    width: 18px;
                                    height: 18px;
                                    margin: 0 auto;
                                    &.input-text {
                                        background-image: url('~@/assets/form-input-text-hover.png');
                                    }
                                    &.input-textarea {
                                        background-image: url('~@/assets/form-input-textarea-hover.png');
                                    }
                                    &.input-date {
                                        background-image: url('~@/assets/form-input-date-hover.png');
                                    }
                                    &.input-datetime {
                                        background-image: url('~@/assets/form-input-date-hover.png');
                                    }
                                    &.location {
                                        background-image: url('~@/assets/form-location-hover.png');
                                    }
                                    &.select {
                                        background-image: url('~@/assets/form-select-hover.png');
                                    }
                                    &.cascader {
                                        background-image: url('~@/assets/form-cascader-hover.png');
                                    }
                                    &.input-num {
                                        background-image: url('~@/assets/form-input-num-hover.png');
                                    }
                                    &.upload-img {
                                        background-image: url('~@/assets/form-upload-img-hover.png');
                                    }
                                    &.upload-video {
                                        background-image: url('~@/assets/form-upload-video-hover.png');
                                    }
                                    &.upload-record {
                                        background-image: url('~@/assets/form-upload-record-hover.png');
                                    }
                                    &.upload-file {
                                        background-image: url('~@/assets/form-upload-file-hover.png');
                                    }
                                    &.group {
                                        background-image: url('~@/assets/form-group-hover.png');
                                    }
                                    &.table {
                                        background-image: url('~@/assets/form-table-hover.png');
                                    }
                                }
                                p {
                                    color: #de2728;
                                }
                            }
                        }
                    }
                }
            }
        }
        .creat-node-model {
           background-color: #fff;
           padding: 16px 22px;
           margin-bottom: 10px;
           display: flex;
           align-items: center;
           height: 80px;
           div {
               height: 100%;
               background-color: #DE2728;
               margin-right: 4px;
               &.slide1 {
                   width: 4px;
               }
               &.slide2 {
                   width: 6px;
               }
               &.slide3 {
                   width: 8px;
               }
           }
           span {
               display: flex;
               align-items: center;
               justify-content: center;
               height: 48px;
               width: 240px;
               border: 1px solid #DE2728;
               font-size: 18px;
               font-family: PingFang SC;
               font-weight: 400;
               color: #DE2728;
               letter-spacing: 4px;
               cursor: pointer;
               position: relative;
               img {
                   position: absolute;
                   right: 20px;
                   top: 50%;
                   transform: translateY(-50%);
                   width: 32px;
                   height: 36px;
                   animation: move 800ms infinite;
                   -webkit-animation: move 800ms infinite;
}
           }
        }
        .creat-node-normal {
            background: #fff;
            padding: 18px 18px 0;
            margin-bottom: 10px;
            --height: 150px;
            overflow-y: hidden;
            position: relative;
            .title {
                display: block;
                margin-bottom: 10px;
                font-size: 12px;
                line-height: 17px;
                color: #37383a;
                font-family: "PingFang SC";
                font-weight: bold;
            }
            .icon-arrow-title {
                position: absolute;
                right: 26px;
                top: 16px;
                i {
                    font-size: 18px;
                    color: #37383a;
                }
            }
            &.hidden {
                animation: 0.4s hide-box-height forwards;
            }
            &.show {
                animation: 0.4s show-box-height forwards;
            }
            ::v-deep{
                .drag-sub-list-ul{
                    width: 100%;
                    @include flexLayout(flex,justify,center);
                    flex-wrap: wrap;
                    .drag-sub-list-li{
                        width: 128px;
                        margin-bottom: 10px;
                        .el-button{
                            width: 100%;
                            height: 40px;
                            padding: .1rem .1rem;
                            font-size: 14px;
                            font-family: "PingFang SC Medium";
                            color: #37383a;
                            border-color: #9DA1A4;
                            @include textEllipsis();
                            &:hover {
                                color: #de2728;
                                border-color: #de2728;
                                background: #fff;
                            }
                        }
                        &.batch-li {
                            width: 128px;
                            margin-bottom: 15px;
                            & > div {
                                width: 100%;
                                height: 40px;
                                border: 1px solid #9DA1A4;
                                cursor: pointer;
                                margin: 0;
                                padding: 0;
                                border-radius: 4px;
                                @include flexLayout(flex,center,center);
                                p {
                                    font-size: 14px;
                                    font-family: "PingFang SC Medium";
                                    color: #37383a;
                                    margin: 0 0 0 6px;
                                }
                                .el-input {
                                    width: 40px;
                                    font-size: 12px;
                                    font-family: "PingFang SC Medium";
                                    color: #37383a;
                                    .el-input__inner {
                                        padding: 0 0 0 4px;
                                        border-color: #9DA1A4;
                                    }
                                    .el-input__suffix {
                                        right: 0;
                                    }
                                    .el-select__caret {
                                        font-size: 12px;
                                    }
                                }
                                &:hover {
                                    border-color: #de2728;
                                    color: #de2728;
                                    p {
                                        color: #de2728;
                                    }
                                    .el-input__inner {
                                        border-color: #de2728;
                                    }
                                }
                            }
                        }
                        &.batch-resource {
                            color: #37383a;
                            font-size: 14px;
                            font-family: "PingFang SC Medium";
                            &:hover {
                                color: #de2728;
                            }
                        }
                    }
                    .import-li {
                        width: 128px;
                        margin-bottom: 10px;
                        .file-update {
                            .file-update-btn {
                                width: 100%;
                                height: 40px;
                                padding-left: 0;
                                padding-right: 0;
                                color: #37383a;
                                border-color: #9DA1A4;
                                & > span {
                                    @include flexLayout(flex,center,center);
                                }
                                &.img {
                                    .img-bg {
                                        display: inline-block;
                                        width: 22px;
                                        height: 18px;
                                        margin-right: 4px;
                                        background: url("~@/assets/form-import-img-normal.png") no-repeat center;
                                    }
                                }
                                &.table {
                                    .img-bg {
                                        display: inline-block;
                                        width: 17px;
                                        height: 17px;
                                        margin-right: 4px;
                                        background: url("~@/assets/form-import-table-normal.png") no-repeat center;
                                    }
                                }
                                &:hover {
                                    color: #de2728;
                                    border-color: #de2728;
                                    background: #fff;
                                    &.img {
                                        .img-bg {
                                            background: url("~@/assets/form-import-img-hover.png") no-repeat center;
                                        }
                                    }
                                    &.table {
                                        .img-bg {
                                            background: url("~@/assets/form-import-table-hover.png") no-repeat center;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@keyframes move {
    0% {
        top: 60%;
        right: 16px;
}
    50%{
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
}
    100% {
        top: 60%;
        right: 16px;
}
}
